#! /bin/sh
set -eux

janetsh $TEST_CASE/case.janet &
janetpid="$!"
wait
while ! test -f result.txt
do
  sleep 0.1
done
test "success" = "$(cat result.txt)"
